package com.xiaolun.factory.abstract1;

/**
 * @Author 硕鼠
 * @Date 2020/5/21 23:02
 * @Version 1.0
 * @Description 文件说明
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("---------小米系列产品---------");
        //小米工厂
        XiaomiFactory xiaomiFactory = new XiaomiFactory();

        //小米生产手机
        IphoneProduct iphoneProduct = xiaomiFactory.iphoneProduct();
        iphoneProduct.start();
        iphoneProduct.shutdown();
        iphoneProduct.callup();
        iphoneProduct.sendSMS();

        //小米生产路由器
        IRouterProduct iRouterProduct = xiaomiFactory.iRouterProduct();
        iRouterProduct.start();
        iRouterProduct.shutdown();
        iRouterProduct.openWifi();
        iRouterProduct.setting();

    }
}
